﻿using System.ServiceModel;
using System.ServiceProcess;
using Matrix.Framework.MessageBus.Net;
using WcfPropertyService;

namespace Lootom.Nms.WindowsService
{
    public partial class BookServiceHost : ServiceBase
    {
        private readonly ServiceHost _serviveHost =
            new ServiceHost(new BookService());

        private MessageBusService class1 = new MessageBusService();

        public BookServiceHost()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            _serviveHost.Open();
        }

        protected override void OnStop()
        {
            _serviveHost.Close();
        }
    }
}